#include "stdafx.h"
#include "setting_edit.h"

setting_edit::setting_edit()
{

}

setting_edit::~setting_edit()
{

}

BEGIN_MESSAGE_MAP(setting_edit, CEdit)
	//{{AFX_MSG_MAP(CDummyEdit)
	// NOTE - the ClassWizard will add and remove mapping macros here.
	ON_WM_KEYDOWN()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

void setting_edit::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	// TODO: Add your message handler code here and/or call default 
	if( (nChar == 'a') || ( nChar == 'A') )
	{
		short nKeyState = GetKeyState(VK_CONTROL);
		BOOL bCtrlCKeyDown = nKeyState & 0x80;
		if(bCtrlCKeyDown)// <Ctrl   +   A>   Key   is   down   
		{
			SetSel(0, -1);
		}
	}
	CEdit::OnKeyDown(nChar, nRepCnt, nFlags);
}